from wxpyview.ui.component.common.basewidget import *

class MenuSeparator(Widget):
    def _getParentParam(self, meta_widget):
        pass
    
    def _setParams(self, meta_widget):
        pass
        
    def create(self, meta_widget):
        self._setParams(meta_widget)

        parent = meta_widget.getParentMetaWidget().getWidget()
        parent_classname = parent.__class__.__name__
        
        if parent_classname == "Menu":
            parent.AppendSeparator()
        else:
            raise Exception